﻿

<div class="box onehalf floatright">
    <h3 class="green">
        Questions and comments <a href="#" class="toggle">Toggle</a></h3>
    <div class="box-content">
        <ul>
            @foreach (var comments in ViewBag.Comments)
            {
                <li>
                    @comments.CreatedOn
                </li>
                <li>
                    @comments.Comment
                </li>
                <li>
                    @for (int i = 0; i < comments.Rating; i++)
                    {
                        <img src="/images/ratingstar.png" />
                }
                </li>
      }
        </ul>

        <p>
        
@using (Html.BeginForm( FormMethod.Post))
{
                    <p>I have a </p>
                    <p>@Html.DropDownList("CommentType")</p>
                   <p>
                    
                   
                   @Html.TextArea("CommentMessage",new{style="width:100%"})
                   </p> 
                        <p>
                       <input type="submit" value="Add" class="action medium" />
                    </p>
    
}
    
    
        </p>

    </div>
    <!-- /box-content -->
</div>
<!-- /box -->
